package cn.cvs.controller;

import cn.cvs.pojo.SysUser;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 第一个Spring MVC控制器
 */
@Controller
public class HelloController {
    Logger logger = Logger.getLogger(HelloController.class);

    /**
     * hello Spring MVC
     *
     * @return
     */
    @RequestMapping(value = "/hello")
    public String hello()  {
        logger.info("Spring MVC框架搭建成功。");
        return "hello";
    }



}
